import Vue from 'vue'
import {
  Pagination,
  Dialog,
  Menu,
  Input,
  InputNumber,
  Checkbox,
  Select,
  Option,
  OptionGroup,
  Button,
  ButtonGroup,
  Table,
  TableColumn,
  DatePicker,
  Breadcrumb,
  BreadcrumbItem,
  Form,
  FormItem,
  Tabs,
  TabPane,
  Slider,
  Icon,
  Row,
  Col,
  Upload,
  Progress,
  Steps,
  Step,
  Carousel,
  CarouselItem,
  Collapse,
  CollapseItem,
  Cascader,
  Container,
  Loading,
  MessageBox,
  Message
} from 'element-ui'
export default function elementui () {
  Vue.use(Pagination)
  Vue.use(Dialog)
  Vue.use(Menu)
  Vue.use(Input)
  Vue.use(InputNumber)
  Vue.use(Checkbox)
  Vue.use(Select)
  Vue.use(Option)
  Vue.use(OptionGroup)
  Vue.use(Button)
  Vue.use(ButtonGroup)
  Vue.use(Table)
  Vue.use(TableColumn)
  Vue.use(DatePicker)
  Vue.use(Breadcrumb)
  Vue.use(BreadcrumbItem)
  Vue.use(Form)
  Vue.use(FormItem)
  Vue.use(Tabs)
  Vue.use(TabPane)
  Vue.use(Slider)
  Vue.use(Icon)
  Vue.use(Row)
  Vue.use(Col)
  Vue.use(Upload)
  Vue.use(Progress)
  Vue.use(Steps)
  Vue.use(Step)
  Vue.use(Carousel)
  Vue.use(CarouselItem)
  Vue.use(Collapse)
  Vue.use(CollapseItem)
  Vue.use(Cascader)
  Vue.use(Container)

  Vue.use(Button)
  Vue.use(Select)
  Vue.use(Loading.directive)

  Vue.prototype.$loading = Loading.service
  Vue.prototype.$msgbox = MessageBox
  Vue.prototype.$alert = MessageBox.alert
  Vue.prototype.$confirm = MessageBox.confirm
  Vue.prototype.$prompt = MessageBox.prompt
  Vue.prototype.$notify = Notification
  Vue.prototype.$message = Message
}
